package com.atguigu.r2dbc.service;

import com.atguigu.r2dbc.entity.StudentDO;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface StudentService {
    Flux<StudentDO> findAll();
    Mono<StudentDO> save(StudentDO student);
    Mono<StudentDO> update(StudentDO student);
    Mono<Boolean> deleteByName(String name);
    Mono<Void> deleteById(Long id);
    Mono<StudentDO> findById(Long id);
    Flux<StudentDO> findByName(String name);
}
